﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
        //DataTable quangcao = DBAccess.getBaner("QUANGCAO").Tables[0];
        //DataRow row;
        //for (int i = 0; i < (quangcao.Rows.Count / 2); i++)
        //{
        //    row = quangcao.Rows[i];
        //    HtmlGenericControl anchor = new HtmlGenericControl("a");
        //    anchor.Attributes.Add("href", (string)row["TargetLink"]);
        //    anchor.Attributes.Add("target", "_blank");
        //    anchor.Attributes.Add("class", "Baner");
        //    anchor.Attributes.Add("style", "height : "+row["Height"]+"; width: "+row["Width"]+"; background-image:url('"+row["LinkImage"]+"');");
        //    //anchor.Attributes.Add("onmouseover", "crollUp(this,'span','ScrollTip2')");
        //    ////anchor.Attributes.Add("onmouseout", "crollDown(this,'span,'ScrollTip2')");
        //    ///////////
        //    HtmlGenericControl divNote = new HtmlGenericControl("span");
        //    divNote.Attributes.Add("class", "ScrollTip1");
        //    divNote.InnerHtml = (string)row["LabelHeader"];
        //    anchor.Controls.Add(divNote);
        //    leftBaner.Controls.Add(anchor);
        //}
        //for (int i = quangcao.Rows.Count / 2; i < quangcao.Rows.Count; i++)
        //{
        //    row = quangcao.Rows[i];
        //    HtmlGenericControl anchor = new HtmlGenericControl("a");
        //    anchor.Attributes.Add("href", (string)row["TargetLink"]);
        //    anchor.Attributes.Add("target", "_blank");
        //    anchor.Attributes.Add("class", "Baner");
        //    anchor.Attributes.Add("style", "height : " + row["Height"] + "; width: " + row["Width"] + "; background-image:url('" + row["LinkImage"] + "');");
        //    //anchor.Attributes.Add("onmouseover", "crollUp(this,'span','ScrollTip2')");
        //    ////anchor.Attributes.Add("onmouseout", "crollDown(this,'span,'ScrollTip2')");
        //    ///////////
        //    HtmlGenericControl divNote = new HtmlGenericControl("span");
        //    divNote.Attributes.Add("class", "ScrollTip1");
        //    divNote.InnerHtml = (string)row["LabelHeader"];
        //    anchor.Controls.Add(divNote);
        //    rightBaner.Controls.Add(anchor);
        //}
}